package PhotovoltaicPowerStation.Equipments;

/**
 * @Description:
 *  * 汇流箱的信息包括设备编号、设备名称、设备状态、总电压、总电流。
 * @Author:AMark
 * @Date: 11/1/2023
 */
//为例能够实现序列化


public class Combiner extends Equipment {
    private int Volt,Current;
    //获取设备电压
    public int getVolt(){
        return this.Volt;
    }
    //获取设备电流
    public int getCurrent(){
        return this.Current;
    }
    public Combiner(){
        super();
    }
    public Combiner(String name, int status, int volt, int current) {
        super(name,status);
        this.Volt = volt;
        this.Current = current;
    }
    @Override
    public String toString() {
        return "类型：整流器" + " 编号：" + ID +" 名称：" + Name + " 总电压：" + Volt + " 总电流：" + Current + "\n";
    }
}
